package day_4.demo3;/*
 *@ 代阳敲的专属代码
 **/

public class Test {
    public static void main(String[] args) {
//        new Ch("小明");
//        System.out.println(Ch.getCount());
//        new Ch("小花");
//        System.out.println(Ch.getCount());
        Ch.getCount();

    }

}
class Ch{
    private static int count=0;
    private String name;

    public Ch(String name) {
        this.name = name;
        count++;
    }

    public static int getCount() {
        Math.max(11,11);
        return count;
    }

    public static void setCount(int count) {
        Ch.count = count;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}